﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MesForm.Model
{
    /// <summary>
    /// 设备操作权限下发
    /// </summary>
    public class DeviceOperationAuthority_Model
    {
        public string deviceSn { get; set; }
        public string groupCode { get; set; }
        public string timeStamp { get; set; }
        public string userNo { get; set; }
    }
    /// <summary>
    /// 设备操作权限下发
    /// </summary>
    public class DeviceOperationAuthorityResult
    {
        /// <summary>
        /// 返回信息
        /// </summary>
        public string result { get; set; }
        /// <summary>
        /// 权限等级：1生产，2设备，3工艺，4品质，5管理员
        /// </summary>
        public string userLevel { get; set; }
        /// <summary>
        /// 测试结果明细
        /// </summary>
        public DeviceOperationAuthorityResultParam[] testResultDetails { get; set; }
        /// <summary>
        /// 接口执行结果
        /// </summary>
        public string status { get; set; }
        /// <summary>
        /// 预留字段
        /// </summary>
        public string remark { get; set; }

    }
    /// <summary>
    /// 设备操作权限下发测试结果参数
    /// </summary>
    public class DeviceOperationAuthorityResultParam
    {
        /// <summary>
        /// 异常描述
        /// </summary>
        public string testResult { get; set; }
        /// <summary>
        /// 员工姓名
        /// </summary>
        public string userName { get; set; }
        /// <summary>
        /// 员工部门，取三级部门
        /// </summary>
        public string department { get; set; }

    }
}
